package com.itheima.priorityqueue;

/**
 * @FileName Entry
 * @Description
 * @Author Sword
 * @date 2025-05-14
 **/
public class Entry implements Priority {
    public String value;
    public int priority;

    public Entry(String value, int priority) {
        this.priority = priority;
        this.value = value;
    }

    @Override
    public int priority() {
        return priority;
    }

    @Override
    public String toString() {
        return "Entry{" +
                "priority=" + priority +
                ", value='" + value + '\'' +
                '}';
    }
}
